#include <iostream>
#include <algorithm>
#include<string>
using namespace std;

void solve(){
	int n;
    cin >> n;
    int tmp=0;
	tmp=(n-n/2)*(n/2)+1;
	cout<<tmp<<endl; 
    
} 

int main() {
    int t;
    cin>>t;
    while(t--){
    	solve();
	}
    return 0;
}
